package edu.ege.thesis.phases.voids.provoperations;

import java.util.Collection;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import edu.ege.thesis.model.VoidDO;
import edu.ege.thesis.phases.controller.VoIDPhaseController;

public class DefaultVoIDProcessingStrategy implements ProvenanceStrategy{
	Logger logger = LoggerFactory.getLogger(DefaultVoIDProcessingStrategy.class);	
	VoIDPhaseController voIDPhaseController = new VoIDPhaseController();
	
	public void findProvenanceEliminatedVoIDs() {
		/* Query repository to find provenance aware VoID documents.
		 * Includes prov:wasAttributedTo (dct:publisher, dct:contributor)
		 */
		Collection<VoidDO> voidDOList = voIDPhaseController.eliminate();
		for(VoidDO voidDO:voidDOList){
			logger.info(voidDO.getDatasetNode().toString() + " " + voidDO.getProvenanceRelatedNode().toString());
		//	System.out.println(voidDO.getDatasetNode().toString() + " " + voidDO.getProvenanceRelatedNode().toString());
		}
		/*
		 * TODO
		 * Match the values of VoidDOList with rule set. Then eliminate the list again 
		 * according to allow-rules in our provenance rule set instances. Then those VoID 
		 * elements should be passed to WoDQA for querying needed data.  
		 */
	}

}
